// 业务模块的api
import axios from '@/utils/request'

// 分页查询条款库信息
export function getProvisionList(data) {
  return axios({
    method: 'get',
    url: '/editor/provision/page',
    params: data
  })
}
// 新增条款库
export function addProvision(data) {
    return axios({
        method: 'post',
        url: '/editor/provision',
        data
    })
}
// 修改条款库
export function editProvision(data) {
    return axios({
        method: 'put',
        url: '/editor/provision',
        data
    })
}
// 删除条款库
export function deleteProvision(ids) {
    return axios({
        method: 'delete',
        url: `/editor/provision/${ids}`
    })
}